package cn.gcjxsc.consts;

public enum CheckStatus {
    /**
     * 未审核
     */
    WAIT(0),
    /**
     * 审核失败
     */
    FAILURE(1),
    /**
     * 审核通过
     */
    PASSED(2);
    private int status;

    CheckStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public static CheckStatus fromCode(int status){
        if (status == 1) {
            return FAILURE;
        }
        else if (status == 2) {
            return PASSED;
        }
        else {
            return WAIT;
        }
    }
}
